Hybris UX Api icon

Hybris UX Api

(0 reviews)

TMF681 - Emarsys Notification

communicationMessage resource is to sent email notification to end customer.

URL

https://[localhost]:[port]/ecom-ux/v1/{businessId}/communicationMessage

Base URI Parameter

NameTypeDescriptionM/O
businessIdstringbusinessId string M Business unit identifier. Example: "PR"M

Headers

NameTypeDescriptionM/O
X-Correlation-IDstringThis is a unique identifier for the current call chain that can be used to tie together log entries on multiple layers.
Example: 644e1dd7-2a7f-18fb-b8ed-ed78c3F92c2b
O

Security Headers

NameTypeDescriptionM/O
client-idstringClient Id value for Client Id Enforcement policy. Environment Specific Value. Eg: 6f0ed16a7b494d76b2d60e05bc3b3332M
client-secretstringClient secret value for Client Id Enforcement policy. Environment Specific Value, eg: e4CD4D43449846aA9D8Cb9c43fM

Data Model - Request

field nametypedescriptionrequired (mandatory-M, optional-O, Not applicable- N/A, conditionalMandatory- C/M)
messageTypeStringType of the Notification Ex: EMAILM
templateIdStringTemplateId from the emarsysM
sourceStringChannel Source nameO
characteristic[]ArrayM
characteristic[].valueTypeStringvaluetype for the characteristic fieldM
characteristic[].valueStringvalue for the characteristic fieldM
characteristic[].nameStringName for the characteristic fieldM
receiver[]ArrayM
receiver[].idStringReceiver unique idM
receiver[].emailStringReceiver unique email addresssO
receiver[].nameStringReceiver nameO
receiver[].phoneNumberStringReceiver phoneNumberO
sender[]ArrayO
sender[].idStringSender unique idO
sender[].nameStringSender nameO
sender[].phoneNumberStringSender PhoneNumberO
attachment[]ArrayO
attachment[].nameStringAttachment name with file extensionO
attachment[].contentStringAttachment data in base64 formatO

Key considerations

Emarsys Email Notification Implementation
-A valid template ID must be provided to trigger the email notification.
-The recipient's email address must be registered in Emarsys to successfully receive the email notification.
-Valid characteristic objects corresponding to the specified templateId must be included in the request.
-These required characteristics are defined and provided by business based on the selected template.
-characteristic.name should be configured by emarsys in template as placeholder to map dynamic values.
-The actual contents of the attachment object encoded as base64.
-NOTE: Emarsys will support for mentioned Formats → .doc, .docx, .pdf, .rtf, .csv, .xml, .xlsx, .xls, .txt
-attachment.name should be in attachment name corresponding encoded format of extension file example: sample.pdf .

API Specification URL: Post Notifications


Reviews